component name='BaseService' {
	
	// Public Methods--------------------------------------------------------------------
	public function get(ID) {
		var oEntity = entityLoadByPK(BeanName,ID);
		try{
			getMetadata(oEntity).entityName;
		} catch (Expression e) {
			throw(type='recordNotFoundException' message='No record found to populate #BeanName# with ID #ID#');
		}
		return oEntity;
	}
	public function load() {
		return entityLoad(BeanName);
	}
	public function new() {
		return entityNew(BeanName);
	}
	public function list() {
		return entitytoQuery(load());
	}
}